package com.example.manager.service;


import com.example.manager.entity.User;
import com.example.manager.entity.UserPageBean;
import com.example.manager.utils.JsonResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IUserService {


    JsonResult<User> login(User user);

    Integer register(User user,String repassword);

    UserPageBean findByUsername(String username,Integer pageSize);

    Integer getAllUserSize();

    UserPageBean getUserByPage(Integer currentpage, Integer pageSize);

    Integer delUser (String username);

    Integer addUser (String username);


    User findUserByUsername(String username);

    void pudateUserInfo(User user);

    Integer updatepw(String password,String newpassword,String repassword,String username);






}
